﻿using FluentValidation;
using Nop.Admin.Models.Logistics;
using Nop.Services.Localization;

namespace Nop.Admin.Validators.Logistics
{
    public class LogisticsPackageNoteTemplateValidator : AbstractValidator<LogisticsPackageNoteTemplateModel>
    {
        public LogisticsPackageNoteTemplateValidator(ILocalizationService localizationService)
        {
            RuleFor(x => x.SystemName).NotNull().WithMessage(localizationService.GetResource("Admin.Logistics.PackageNoteTemplate.SystemName.Required"));
            RuleFor(x => x.Content).NotNull().WithMessage(localizationService.GetResource("Admin.Logistics.PackageNoteTemplate.Content.Required"));
        }
    }
}